<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请岗位：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select id="roleIdE"
						name="roleId"
						class="form-control" 
						ng-model="editModel.retroactive.roleId">
                        <option ng-repeat="role in viewModel.roleList" value="{{role.roleId}}" ng-selected="viewModel.selected(role)">{{role.roleName}}--({{role.departmentCode}}){{role.departmentName}}</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">签到日期：</div>
			<div class="col-sm-8 col-md-8 form-input">
			  	<input class="form-control"
			  		ng-model="editModel.attendanceDate" maxLength="5" disabled="disabled">
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">考勤状态：</div>
			<div class="col-sm-8 col-md-8 form-input">
			  <!--  <select id="attendanceState" class="form-control" disabled="disabled" ng-model="editModel.attendanceState">
                       <option ng-repeat="dictionary in viewModel.attendanceStateData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select> -->
                <input id="attendanceState" class="form-control" disabled="disabled" ng-model="editRetroactiveModel.attendanceState" />
			</div>
		</div>
		<div class="col-md-12 form-item" ng-if="editModel.type==0">
			<div class="col-sm-3 col-md-3 form-title"></div>
			<div class="col-sm-8 col-md-8 form-input">原上班签到：
				<span ng-if="editModel.startTime != null">  
                    {{editModel.startTime}}
                </span> 
                <span ng-if="editModel.startTime == null">  
                    	无
                </span> 
			</div>
		</div>
		<div class="col-md-12 form-item" 
			 ng-show="editModel.type==0"
			 ng-hide="editModel.type==1">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>补签上班签到：</div>
			<div class="col-sm-8 col-md-8 form-input" >
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.aStartTime.$dirty && editForm.aStartTime.$invalid}">
				 	<input  id="aStartTime" 
				 		    name="aStartTime" 
					 		class="form-control"
					 		ng-model="editModel.retroactive.startTime" 
					 		maxLength="5"
					 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
					 		required>
				</div>	   	
			</div>
		</div>
		<div class="col-md-12 form-item" ng-if="editModel.type==1">
			<div class="col-sm-3 col-md-3 form-title"></div>
			<div class="col-sm-8 col-md-8 form-input">原末班签退：
				<span ng-if="editModel.endTime != null">  
                    {{editModel.endTime}}
                </span> 
                <span ng-if="editModel.endTime == null">  
                    	无
                </span> 
			</div>
		</div>
		<div class="col-md-12 form-item"
			 ng-show="editModel.type==1"
			 ng-hide="editModel.type==0">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>补签末班签退：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.aEndTime.$dirty && editForm.aEndTime.$invalid}">
					<input 	id="aEndTime" 
							name="aEndTime" 
					 		class="form-control"
					 		ng-model="editModel.retroactive.endTime" 
					 		maxLength="5"
					 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
					 		required> 			
				</div>	   	
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">备注：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<textarea ng-model="editModel.retroactive.description" class="form-control elastic __web-inspector-hide-shortcut__" rows="3" maxLength="255"></textarea>
			</div>
		</div>
	</div>	
</form>
